package com.lcg.learn.factory.factoryMethod.model;

/**
 * 继承抽象产品类，
 *
 * 实现公共方法makeJuice
 */
public class AppleJuiceModel extends JuiceModel{

    private String juiceSize;

    /**
     *
     */
    @Override
    public void makeJuice() {
        this.setJuiceName("appleJuice");
        this.setJuicePrice("25￥");
        this.setJuiceDate("2019-09-09");
        this.setJuiceSize("大瓶");

        System.out.println("生产："+this.getJuiceName()+" "+this.getJuicePrice()+" "+this.getJuiceDate()+",size: "+this.getJuiceSize());
    }

    public String getJuiceSize() {
        return juiceSize;
    }

    public void setJuiceSize(String juiceSize) {
        this.juiceSize = juiceSize;
    }
}
